package cn.schoolwow.quickserver.controller;


import cn.schoolwow.quickserver.request.HttpRequest;
import cn.schoolwow.quickserver.response.HttpResponse;
import cn.schoolwow.quickserver.session.HttpSession;

import java.lang.reflect.Method;

public interface ResponseBodyAdvice {
    /**
     * 是否支持
     */
    boolean support(Method method);

    /**
     * 定制化返回结果
     */
    Object beforeBodyWrite(Object result, Method method, HttpRequest httpRequest, HttpResponse httpResponse, HttpSession httpSession);
}
